import { get, post } from '@/utils/http';

//获取权限节点
export const getNode = params => get('/tea?method=node', params);
//获取Token
export const getToken = params => get('/tea?method=get', params);
//创建删除用户
export const postNc = params => post('/tea?method=nc', params);
//修改用户密码
export const postCp = params => post('/tea?method=cp', params);
//设置用户权限
export const postUp = params => post('/tea?method=up', params);
//列出所有子用户
export const getChildrenUser = params => get('/tea?method=ul', params);
